module.exports = {
  "presets": [
    "@babel/preset-env", 
    [
      "@babel/preset-react",
      {"runtime": "automatic"},
    ],
    "@babel/preset-typescript",
  ],
  "plugins": [
    ["@babel/plugin-proposal-decorators", { "legacy": true }],//支持装饰器
    ["@babel/plugin-transform-runtime"],
    ["@babel/plugin-proposal-class-properties"]//@babel/plugin-proposal-decorators 中legacy为true时的需要项
  ]
}
